<?php
	// no direct access
	defined( '_JEXEC' ) or die( 'Restricted access' );
	jimport( 'joomla.application.component.view');
	
	class DivisionViewDivisionEdit extends JView
	{                                               
		function display()
		{		
			$model = $this->getModel();
			$cids = JRequest::getVar('cid', null, 'default', 'array' );
			$division = $model->getDivision($cids[0]);
			$divisions = $model->getDivisions();
			$this->assign('division', $division);
			$this->assign('divisions', $divisions);
			
			JToolBarHelper::title( JText::_( 'Edit Division' ), 'generic.png' );
			JToolBarHelper::save();
			JToolBarHelper::cancel();  

			parent::display();
		}
	}
?>